package com.sgzn.sgpay.web.exception;

import lombok.Getter;
import lombok.Setter;
import org.springframework.security.core.AuthenticationException;

public class SgpayAuthenticationException extends AuthenticationException {
    /**
     * 重定向地址
     */
    @Getter
    @Setter
    private String redirectUrl;

    /**
     * 登录方式
     */
    @Getter
    @Setter
    private String loginType;

    public SgpayAuthenticationException(String msg, String redirectUrl, String loginType) {
        super(msg);
        this.redirectUrl = redirectUrl;
        this.loginType = loginType;
    }


}
